
<%@ page import="dropouts.Quotation" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'quotation.label', default: 'Quotation')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-quotation" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
			</ul>
		</div>
		<div id="list-quotation" class="content scaffold-list" role="main">
			<h1>Dropouts for Selected Dates</h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:form method="post" >
				<label for="quotation_date">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<g:message code="quotation.quotation_date.label" default="From" />
					<span class="required-indicator">*</span>
				</label>
				<g:datePicker name="listfrom" precision="day" value="${flash.listfrom}" />
				&nbsp;&nbsp;&nbsp;
				<label for="quotation_date">
					<g:message code="quotation.quotation_date.label" default="To" />
					<span class="required-indicator">*</span>
				</label>
				<g:datePicker name="listto" precision="day" value="${flash.listto}" />				
				<fieldset class="buttons">
					<g:actionSubmit class="list" action="list" value="${message(code: 'default.button.list.label', default: 'Refresh')}" />
				</fieldset>
				&nbsp;&nbsp;&nbsp;listfrm is ${flash.listfrom} &nbsp;listtoo is ${flash.listto}
			</g:form>
			<table>
				<thead>
					<tr>
					
						<g:sortableColumn property="call_back_requested" title="${message(code: 'quotation.call_back_requested.label', default: 'Callbackrequested')}" />
					
						<th><g:message code="quotation.customer.label" default="Customer" /></th>
					
						<g:sortableColumn property="emailed" title="${message(code: 'quotation.emailed.label', default: 'Emailed')}" />
					
						<th><g:message code="quotation.person.label" default="Person" /></th>
					
						<g:sortableColumn property="quotation_date" title="${message(code: 'quotation.quotation_date.label', default: 'Quotationdate')}" />
					
					</tr>
				</thead>
				<tbody>
				<g:each in="${quotationInstanceList}" status="i" var="quotationInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="show" id="${quotationInstance.id}">${fieldValue(bean: quotationInstance, field: "call_back_requested")}</g:link></td>
					
						<td>${fieldValue(bean: quotationInstance, field: "customer")}</td>
					
						<td>${fieldValue(bean: quotationInstance, field: "emailed")}</td>
					
						<td>${fieldValue(bean: quotationInstance, field: "person")}</td>
					
						<td><g:formatDate date="${quotationInstance.quotation_date}" /></td>
					
					</tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${quotationInstanceTotal}" />
			</div>
		</div>
	</body>
</html>
